import type { addHouseParams, HouseListFace, HouseListParams } from "../type/house"
import http from "../utils/request"

// 列表数据
export const HouseList = (params:HouseListParams) => http.get<HouseListFace>('houses/list',params)
// 删除房间数据
export const deleteHouse = (id:number) => http.get<null>('houses/delete',{id})
// 批量删除
export const deleteHouseAll = (ids:Number[]) => http.post<null>('houses/deleteall',{ids})
// 添加房间数据
export const addHouse = (data:addHouseParams) => http.post<null>('houses/add',data)